package org.yanh.es.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_poem")
public class Poem implements Serializable {
    private static final long serialVersionUID = 7100225268368014590L;
    @TableId(value = "id", type =IdType.INPUT)
    private String id;
    private String name;
    private String author;
    private String type;
    private String content;
    private String href;
    private String authordes;
    private String origin;
    private Category category = new Category();
}
